/*
 * pthrver.cpp
 *
 *  Created on: Jul 2, 2011
 *      Author: denis
 */

#include <fstream>
#include "init_pent.h"
#include "types.h"
#include "constants.h"
int pthrver(){


	pentaminos_vector* rotations=Initialization();
	std::ofstream destfile("/home/denis/pentamino_solutions.txt");


	longvector* first_element=(*rotations)[0];
	unsigned long long g_current_position = 0;

	unsigned long long g_default_current_position =0;


	g_default_current_position=(*first_element)[0];
	for (int ycount = Y_MIN; ycount < 2; ycount++) {
		g_current_position = (g_default_current_position >> ((X_MAX)* ycount));
		Row(g_current_position,rotations,&destfile);
	}

	//CLEANUP

	pentaminos_vector::iterator penvecit;
	for(penvecit=rotations->begin();penvecit!=rotations->end();penvecit++){
		(*penvecit)->clear();
		delete(*penvecit);
	}

	rotations->clear();
	delete(rotations);

	return 0;


};
